package io.renren.modules.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.renren.common.utils.PageUtils;
import io.renren.modules.app.entity.BankCardsEntity;

import java.util.Map;

/**
 * 银行卡表
 *
 * @date 2022-04-20 22:37:45
 */
public interface BankCardsService extends IService<BankCardsEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 获取用户银行卡信息
     *
     * @param userId 用id
     * @return
     */
    public BankCardsEntity queryUserBankCard(Long userId);

    /**
     * 新增银行卡信息
     *
     * @param bankCards 银行卡信息类
     * @return
     */
    public Integer addBankCards(BankCardsEntity bankCards);

    /**
     * 修改银行卡信息
     *
     * @param bankCards 银行卡信息类
     * @return
     */
    public Integer editBankCards(BankCardsEntity bankCards);
}

